#pragma once
#include <QFrame>

class QLabel;
class SImageButton;

class CapitalMarketFunds;
class CapitalMarketAssets;
class MMOpenMarketOperator;
class CapitalMarketCNEX;
class MoneyMarketWidget : public QFrame
{
    Q_OBJECT

	enum eChild {
		MM_IB_REPO = 0,
		MM_EXCH_REPO,
		MM_IRS,
		MM_SHIBOR,
		MM_REPO_FIXING,
		MM_IB_REPO_FIXING,
		MM_COUNT
	};
public:
	MoneyMarketWidget(QWidget* parent);

protected:
    void resetStretch();
	void paintEvent(QPaintEvent* e) override;
protected slots:
    void onFoldClicked();
	void onSettingClick(int i);

private:
	QLabel* m_lblTitle = nullptr;
    CapitalMarketFunds *money_market;
    CapitalMarketAssets *asset_market;
    SImageButton        *m_omo_fold;
    MMOpenMarketOperator* m_wndOMO = nullptr;//公开市场操作
    SImageButton        *m_cnex_fold;
    CapitalMarketCNEX   *m_CNEX;

};

